projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bf4733
)
Trivial: Move a cairo_save call
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 28 Sep 2015 19:02:36 +0000
(15:02 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 29 Sep 2015 13:43:42 +0000
(09:43 -0400)
Move the cairo_save call to where it is needed.
gtk/gtkcontainer.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcontainer.c
b/gtk/gtkcontainer.c
index 2060529aeb7fdf3af695fb3f7aa4bd4d08bad7cb..c0614f5a350413743f98091d20c10b790d2de7ca 100644
(file)
--- a/
gtk/gtkcontainer.c
+++ b/
gtk/gtkcontainer.c
@@
-3787,8
+3787,6
@@
gtk_container_propagate_draw (GtkContainer *container,
if (!gtk_container_should_propagate_draw (container, child, cr))
return;
- cairo_save (cr);
-
/* translate coordinates. Ugly business, that. */
if (!_gtk_widget_get_has_window (GTK_WIDGET (container)))
{
@@
-3825,6
+3823,7
@@
gtk_container_propagate_draw (GtkContainer *container,
y += allocation.y;
}
+ cairo_save (cr);
cairo_translate (cr, x, y);
_gtk_widget_draw (child, cr);